﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class MainCamera : MonoBehaviour
{
    [SerializeField] GameObject myPlayer;
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        Vector3 t_newPosition = myPlayer.transform.position;
        t_newPosition.z -= 10;
        this.transform.position = t_newPosition;
    }
}
